<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Show</title>
    <script src="jquery.js" type="text/javascript"></script>
    <script>
        $(function (){
            $.ajax({
                url:'/result',
                data:'',
                type:'POST',
                success:function (data){
                    // document.append("<h1>"+data+"</h1>");
                }
            })
        })
    </script>
</head>
<body>
<div style="text-align: center">
    <span style="color:darkslategray;font-size: 30px"></span>
    <hr>
    <table class="list">
        <tr>
            <th>id</th><th>name</th><th>age</th>
        </tr>
        <tr th:each="user:${users}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.name}"></td>
            <td th:text="${user.age}"></td>
        </tr>
    </table>
</div>
</body>
</html>